package com.daiyang.blog.common.exception;

import com.daiyang.blog.common.contants.Contants;
import lombok.Data;
import lombok.EqualsAndHashCode;

// 明确指定不调用父类的 equals 和 hashCode 方法
@EqualsAndHashCode(callSuper = true)
@Data
public class BlogException extends RuntimeException {
    private int code;
    private String msg;



    public BlogException( String msg) {
        this.msg = msg;
        this.code = Contants.RESULT_ERROR;
    }
}
